package com.huatai.verity.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.IService;
import com.huatai.verity.entity.AuthManage;
import com.huatai.verity.vo.AuthManageParmVo;
import com.huatai.verity.vo.SignCodeVo;

import javax.servlet.http.HttpServletResponse;
import java.util.Map;

/**
 * @author songxiude
 */
public interface AuthManageService extends IService<AuthManage> {
	/**
	 * 新增更新授权码
	 * @param authManage
	 * @return
	 */
	boolean saveUpdate(AuthManage authManage);

	/**
	 * 获取授权码列表
	 * @param authManageParmVo
	 * @return
	 */
	IPage<Object> getAuthManageList(AuthManageParmVo authManageParmVo);

	/**
	 * 获取授权码
	 * @param signCodeVo
	 * @return
	 */
	Map<String,String> getSignCode(SignCodeVo signCodeVo);

	/**
	 * 导出签名证书xml
	 * @param id
	 * @param response
	 */
	void exportSignXml(Long id,HttpServletResponse response);
}
